package com.ccsoft.gsms.service;

import com.ccsoft.gsms.dao.ContactTypeMapper;
import com.ccsoft.gsms.model.ContactType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ContactTypeServiceImpl implements ContactTypeService {

    @Autowired
    private ContactTypeMapper dao;

    @Override
    public int deleteByPrimaryKey(String sid) {
        return dao.deleteByPrimaryKey(sid);
    }

    @Override
    public int insert(ContactType record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(ContactType record) {
        return dao.insertSelective(record);
    }

    @Override
    public ContactType selectByPrimaryKey(String sid) {
        return dao.selectByPrimaryKey(sid);
    }

    @Override
    public int updateByPrimaryKeySelective(ContactType record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ContactType record) {
        return dao.updateByPrimaryKey(record);
    }

    @Override
    public List<ContactType> selectAll() {
        return dao.selectAll();
    }
}
